package small_file

import (
	"context"
	"enode/store/small_file/models"
)

type SqlHandle interface {
	MigratorTable(ctx context.Context)
	InserFileIndex(ctx context.Context, index models.FileIndex) error
	AppendToBlob(ctx context.Context, storePath, expire string, size int64) (int64, error)
	MarkDel(ctx context.Context, pieceId string) error
	GetFileInfo(ctx context.Context, pieceId string) (*models.FileIndex, error)
	CleanData()
	CleanExpire(ctx context.Context, expire string) error
}
